# Contributor: Jose Maria Garcia <josemaria.alkala@gmail.com>
# Maintainer: Jose Maria Garcia <josemaria.alkala@gmail.com>
pkgname=zile
pkgver=2.4.15
pkgrel=0
pkgdesc="GNU Zile is a text editor development kit."
url="https://www.gnu.org/software/zile"
arch="all"
license="GPL3"
depends=""
makedepends="ncurses-dev gc-dev perl help2man"
install=""
subpackages="${pkgname}-doc"
source="https://ftp.gnu.org/gnu/zile/${pkgname}-${pkgver}.tar.gz"
builddir="$srcdir/${pkgname}-${pkgver}"

build() {
        cd "$builddir"
        ./configure \
                --prefix=/usr \
                --sysconfdir=/etc \
                --mandir=/usr/share/man \
                --localstatedir=/var
        make
}

package() {
        cd "$builddir"
        make DESTDIR="$pkgdir" install
        rm -f "$pkgdir"/usr/lib/charset.alias
}


sha512sums="
e2a04c280ae0c0038e6ef18abec0be55063a472f77a511bf31459712be24659edcaa2d1c861d7c00bdab87a1881af03d14eb561047c386cbff5f90b13b1a2575  zile-2.4.15.tar.gz
"
